<include file="public/header" />
<style>
  body{
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: url(/public/minadminv2/images/login_bg.png);
    background-size: cover;
  }
  .tipbox {
    width: 400px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    padding: 100px 150px;
    background: #131a24;
    margin-top: 180px;
    font-size: 14px;
    color: #ffffff;
    border-radius: 10px 200px 10px 200px;
  }
  .welcople{font-size: 24px;text-align: center;margin-bottom: 40px;}
  .bottom_a{text-align: center;margin-top: 20px;}
</style>
<!--<img src="__PUBLIC__/minadminv2/icon/logo.svg" style="padding: 30px;">-->
<div class="layui-form">
  <?php if($code == 1) {?>
  <!--修改成功-s-->
  <div class="tipbox" style="">
    <div class="welcople  bounce animated">
      <i class="litps modifysu"></i><?php echo(strip_tags($msg)); ?>
    </div>
    <div class="ma-to-20" style="text-align: center">
      <span class="cloblu">自动跳转中...</span>
      <span class="waittim"><a id="href" href="<?php echo($url); ?>" style="color: #8c91a5">等待时间：<em  id="wait"><?php echo($wait); ?></em></a></span>
    </div>
    <div class="ma-to-10 bottom_a">
      <!--<a href="/"  target="_parent" class="cloblu">网站前台</a>-->
      <a href="/index.php?m=minadmin&c=Index&a=index" target="_parent" class="waittim ht-colblue">小程序后台</a>
    </div>
  </div>
  <!--修改成功-e-->
  <?php }else{?>
  <!--修改失败-s-->
  <div class="tipbox" style="">
    <div class="welcople  bounce animated">
      <i class="litps modifyfail"></i><?php echo(strip_tags($msg)); ?>
    </div>
    <div class="ma-to-20" style="text-align: center">
      <span class="cloblu">自动跳转中...</span>
      <span class="waittim"><a id="href" href="<?php echo($url); ?>" style="color: #8c91a5">等待时间：<em id="wait"><?php echo($wait); ?></em></a></span>
    </div>
    <div class="ma-to-10 bottom_a">
      <!--<a href="/"  target="_parent" class="cloblu">网站前台</a>-->
      <a href="/index.php?m=minadmin&c=Index&a=index" target="_parent" class="waittim ht-colblue">小程序后台</a>
    </div>
  </div>
  <!--修改失败-e-->
  <?php }?>
</div>
<include file="public/scripts" />
<script type="text/javascript">
  (function(){
    var wait = document.getElementById('wait'),href = document.getElementById('href').href;
    var interval = setInterval(function(){
      var time = --wait.innerHTML;
      if(time <= 0) {
        location.href = href;
        clearInterval(interval);
      };
    }, 1000);
  })();
</script>
